package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.Domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_merchant_count")
@ApiModel(value = "用户统计数据", description = "用户统计数据")
public class MerchantCount extends Domain {
    //id策略采用自增长方式
    @JsonFormat(
            shape = JsonFormat.Shape.STRING
    )
    @TableId(value = "id", type = IdType.AUTO)//如果没有这句 id会以很大的id
    @ApiModelProperty(name = "id", value = "主键-ID")
    private Long id;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "完成数")
    private Integer finishNum;
    @ApiModelProperty(value = "订单总数")
    private Integer totalNum;
    @ApiModelProperty(value = "订单总数")
    private BigDecimal rate;
    @ApiModelProperty(value = "完成金额")
    private BigDecimal finishAmount;
    @ApiModelProperty(value = "完成金额")
    private BigDecimal totalAmount;
    @ApiModelProperty(value = "余额")
    private BigDecimal earning;
    @ApiModelProperty(value = "回U提现金额")
    private BigDecimal withdraw;
    @ApiModelProperty(value = "日期")
    private String countDate;
}
